﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReviewSearch.aspx.cs" Inherits="ORS.Web.ReviewSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        #form1
        {
            height: 580px;
            margin-left: 0px;
            text-align: left;
        }
        .style1
        {
            margin-top:8%;
            width: 101px;
        }
        #Select1
        {
            height: 155px;
            width: 180px;
        }
        #Select_Interest
        {
            width: 167px;
        }
        .style4
        {
            height: 65px;
        }
        .style5
        {
            width: 371px;
            height: 65px;
        }
        .style7
        {
            width: 328px;
            height: 34px;
        }
        .style8
        {
            width: 371px;
            height: 34px;
        }
        .style9
        {
            width: 328px;
            height: 27px;
        }
        .style10
        {
            width: 371px;
            height: 27px;
        }
        .style11
        {
            width: 328px;
            height: 24px;
        }
        .style12
        {
            width: 371px;
            height: 24px;
        }
    </style>

        <script type="text/javascript">
            function hasChecked(objName, msg) {
                var box = document.getElementsByName(objName);
                var t = 0;
                for (var j = 0; j < box.length; j++)
                { if (box[j].checked) t = t + 1; }
                if (t == 1)
                    return true;
                else
                { window.alert(msg); return false; }
            }
     
     </script>

</head>
<body style="height: 667px">
    <form id="form1" runat="server">
    <br />
    <br />
    <table style="width: 93%; height: 84px; margin-left: 100px;" border="0" 
        cellpadding="0" dir="ltr" frame="hsides" id="Table_Query">
        <tr>
            <td class="style1" rowspan="4">
                <asp:RadioButtonList ID="rbtnqtype" runat="server" Font-Size="Large" 
                    style="margin-left: 0px" Width="122px" Height="131px">
                    <asp:ListItem Value="0" Selected="True">论文题目</asp:ListItem>
                    <asp:ListItem Value="1">作者姓名</asp:ListItem>
                    <asp:ListItem Value="2">研究领域</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="style11">
                </td>
            <td class="style12">
                </td>
        </tr>
        <tr>
            <td class="style9">
                <asp:TextBox ID="tbx_title" runat="server" Width="274px" 
                    style="text-align: left"></asp:TextBox>
            </td>
            <td class="style10">
                </td>
        </tr>
        <tr>
            <td class="style7">
                <asp:TextBox ID="tbx_author" runat="server" style="text-align: left"></asp:TextBox>
            </td>
            <td class="style8">
                </td>
        </tr>

         <tr>
         <td class="style4">
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlData_Interests" DataTextField="name" 
                    DataValueField="interestid" Height="20px" Width="120px">
                    <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlData_Interests" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DB_ConnectionString %>" 
                    SelectCommand="SELECT * FROM [tb_interest]" 
                    ProviderName="<%$ ConnectionStrings:DB_ConnectionString.ProviderName %>"></asp:SqlDataSource>
             </td>
         <td style="text-align: left" class="style5">
                <asp:Button ID="btnquery" runat="server" Height="25px" Text="查   询" 
                    style="margin-left: 0px" onclick="btnquery_Click" />
&nbsp;
                <asp:Button ID="btnreset" runat="server" Height="25px" Text="重   置" 
                     Width="65px" onclick="btnreset_Click" />
             &nbsp;
                <asp:Button ID="btnreview" runat="server" Height="25px" 
                    Text="浏览稿件" Width="64px" onclick="btnreview_Click" onclientclick="return hasChecked('paper_select','请选择一条记录')" />
             </td>

        </tr>



    </table>
&nbsp;
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    &nbsp;<asp:GridView  ID="gvpaper2" runat="server" AutoGenerateColumns="False" 
           OnRowDataBound="gvpaper2_RowDateBoind"  EnableModelValidation="True" Width="865px" EmptyDataText="无任何查询记录" ForeColor="#333333" style="text-align: center; margin-left: 142px;">
        <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="contentlink" 
                    DataFormatString="&lt;input type=&quot;checkbox&quot; name=&quot;paper_select&quot; value=&quot;{0}&quot;&gt;" 
                    HtmlEncode="False" HeaderText="浏览稿件" />
                <asp:BoundField DataField="tiltle" HeaderText="论文标题" />
                <asp:BoundField DataField="cname" HeaderText="作者" />
                <asp:BoundField DataField="submitdate" HeaderText="提交日期" 
                    DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="reviewdate" DataFormatString="{0:yyyy-MM-dd}" 
                    HeaderText="审阅日期" />
                <asp:TemplateField HeaderText="审阅结果">
                <ItemTemplate>
                    <asp:Label ID="lblreviewstate" runat="server" Text='<%# Bind("reviewstate") %>'></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="reviewcomm" HeaderText="审阅意见" />
                <asp:TemplateField HeaderText="终审结果">
                <ItemTemplate>
                    <asp:Label ID="lblapprovestate" runat="server" Text='<%# Bind("approvestate") %>'></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#336699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
    
    </form>
</body>
</html>
